package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.alipaymchbatch.AlipayMchBatchDetailQuery;
import com.uzai.console.entity.AlipayMchBatchDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface AlipayMchBatchDetailMapper {
    int deleteById(Long id);

    int insert(AlipayMchBatchDetail record);

    int insertSelective(AlipayMchBatchDetail record);

    AlipayMchBatchDetail selectById(Long id);

    AlipayMchBatchDetail selectByOutBatchNoAndOutBizNo(@Param("outBatchNo") String outBatchNo, @Param("outBizNo") String outBizNo);

    int updateByIdSelective(AlipayMchBatchDetail record);

    int updateById(AlipayMchBatchDetail record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<AlipayMchBatchDetail> findByList(Page<AlipayMchBatchDetail> page, @Param("query") AlipayMchBatchDetailQuery query);

    /**
     * 查询所有
     * @param query
     * @return
     */
    ArrayList<AlipayMchBatchDetail> findByList(@Param("query") AlipayMchBatchDetailQuery query);
}